How to clone git repository only some directories?
How to clone git repository only some directories?
|First, do:
git clone --depth 1 [repo root] [name of destination directory]
Then:
cd [name of destination directory]
…And lastly:
git filter-branch --prune-empty --subdirectory-filter [path to sub-dir] HEAD
|
|—————————————————————————————————————————————————————————————————————————————-|

